﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CrossLine
{
    class LogUtil
    {
        public static void LogLine(object s)
        {
            Console.WriteLine(s);
            StreamWriter log = new StreamWriter("mlog.log", true);
            log.WriteLine(s);
            log.Close();
        }

        public static void StockLine(object s)
        {
            Console.WriteLine(s);
            StreamWriter log = new StreamWriter("slog.log", true);
            log.WriteLine(s);
            log.Close();
        }

        public static void LogLine()
        {
            Console.WriteLine();
            StreamWriter log = new StreamWriter("mlog.log", true);
            log.WriteLine();
            log.Close();
        }
        public static void Log(object s)
        {
            Console.Write(s);
        }
    }
}
